home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
hlp.c
< prev
next >
Wrap
C/C++ Source or Header
|
2000-09-26
|
711b
|
30 lines
#include <exec/types.h>
struct GfxBase *GfxBase;
struct IntuitionBase *IntuitionBase;
struct ATUtilitiesBase *ATUtilitiesBase;
struct DiskfontBase *DiskfontBase;
VOID main(argc,argv)
LONG argc;
UBYTE *argv[];
{
GfxBase=OpenLibrary("graphics.library",0L);
IntuitionBase=OpenLibrary("intuition.library",0L);
DiskfontBase=OpenLibrary("diskfont.library",0L);
ATUtilitiesBase=OpenLibrary("at-utilities.library",0L);
if((DiskfontBase!=NULL)&&(ATUtilitiesBase!=NULL))
{
if(argc==2)
Help(argv[1],0);
else if(argc==3)
Help(argv[1],atol(argv[2]));
else
Help("M:xy",0);
}
if(ATUtilitiesBase) CloseLibrary(ATUtilitiesBase);
if(DiskfontBase) CloseLibrary(DiskfontBase);
exit(0);
}